import 'package:flutter/material.dart';

import 'functionButton.dart';

class ARowBottons extends StatelessWidget {
  final String title1;
  final Color color1;
  final VoidCallback onPressed1;
  final String title2;
  final Color color2;
  final VoidCallback onPressed2;

  const ARowBottons({
    super.key,
    required this.title1,
    required this.color1,
    required this.onPressed1,
    required this.title2,
    required this.color2,
    required this.onPressed2,
  });

  @override
  Widget build(BuildContext context) {
    return SizedBox(
      height: 35,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: [
          Expanded(
            child: FunctionButton(
              title: title1,
              color: color1,
              onPressed: onPressed1,
            ),
          ),
          SizedBox(width: 10),
          Expanded(
            child: FunctionButton(
              title: title2,
              color: color2,
              onPressed: onPressed2,
            ),
          ),
        ],
      ),
    );
  }
}
